package com.nttuan.adapter;

import java.util.ArrayList;
import java.util.List;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.ViewGroup;
import com.nttuan.mycalender.FragmentCenter;
import com.nttuan.mycalender.FragmentFreeTime;

public class MyPaperAdapter extends FragmentPagerAdapter{

	
	@Override
	public void finishUpdate(ViewGroup container) {
		// TODO Auto-generated method stub
        super.finishUpdate(container);
	}

	private List<Fragment> listFragment = new ArrayList<Fragment>();
	public MyPaperAdapter(FragmentManager fm) {
		super(fm);

		listFragment.add(new FragmentCenter());
		listFragment.add(new FragmentFreeTime());
	}

	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return listFragment.get(arg0);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return listFragment.size();
	}

}
